#ifndef MAINWIN_H
#define MAINWIN_H

#include <QWidget>
#include "header.h"

namespace Ui {
class MainWin;
}

class MainWin : public QWidget
{
    Q_OBJECT

public:
    explicit MainWin(QWidget *parent = 0);
    ~MainWin();

public slots:
    void resizeEvent(QResizeEvent *e);

private slots:
    void on_pBtn_PasswdNote_clicked();

    void on_pBtn_Books_clicked();

    void on_pBtn_WorkRecord_clicked();

    void on_pBtn_login_clicked();

    void on_pBtn_register_clicked();

private:
    Ui::MainWin *ui;

    // 变量
    PasswdNote *pNote;
    Books *books;
    WorkRecord *wRecord;
    Login *login;
    Register *rgst;

    // 函数
    void Init();
    void InitCtrls();
    void OpenOneWindow(int WindowFlag);
};

#endif // MAINWIN_H
